package dup.login.demo.controller;

import dup.login.demo.domain.User;
import dup.login.demo.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping(value = "/user")
public class UserController {
    @Autowired
    UserServiceImpl userServiceImpl;

    @PostMapping("/getuserlist")
    public ArrayList<User> getUserList() {
        return userServiceImpl.getUserList();
    }
}
